xen/pygrub: grub2/grub.cfg from RHEL 7 has new commands in menuentry
authorJoby Poriyath <joby.poriyath@citrix.com>
Tue, 4 Feb 2014 18:10:35 +0000 (18:10 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 12 Mar 2014 13:51:29 +0000 (13:51 +0000)
commitdd03048708af072374963d6d0721cc6d4c5f52cf
treeca049cbccbfe76620ce4afe510633f318c055c8c
parent2cf484cee084be71b1f63e718d76af7555a6ab14
xen/pygrub: grub2/grub.cfg from RHEL 7 has new commands in menuentry

menuentry in grub2/grub.cfg uses linux16 and initrd16 commands
instead of linux and initrd. Due to this RHEL 7 (beta) guest failed to
boot after the installation.

In addition to this, RHEL 7 menu entries have two different single-quote
delimited strings on the same line, and the greedy grouping for menuentry
parsing gets both strings, and the options inbetween.

Signed-off-by: Joby Poriyath <joby.poriyath@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: george.dunlap@citrix.com
tools/pygrub/examples/rhel-7-beta.grub2 [new file with mode: 0644]
tools/pygrub/src/GrubConf.py